/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/3/14.
	 */
	var Button = __webpack_require__(12);
	var Input = __webpack_require__(9);
	var Checkbox = __webpack_require__(16);
	var SelectDropDown = __webpack_require__(13);
	var FormItem = __webpack_require__(7);
	var Steps = __webpack_require__(23);
	var BorrowApply = __webpack_require__(24);
	function hasClass(elem, cls) {
	    elem = elem || {};
	    return new RegExp("\\b" + cls + "\\b").test(elem.className);
	};
	//添加样式
	function addClass(elem, cls) {
	    elem = elem || {};
	    hasClass(elem, cls) || (elem.className += " " + cls);
	    elem.className = elem.className.replace(/^\s|\s$/g, "").replace(/\s+/g, " ");
	    return this;
	};
	//删除样式
	function removeClass(elem, cls) {
	    elem = elem || {};
	    if (hasClass(elem, cls)) {
	        elem.className = elem.className.replace(new RegExp("(\\s|^)" + cls + "(\\s|$)"), "");
	    }
	    return this;
	};

	var BorrowSuccess = React.createClass({displayName: "BorrowSuccess",
	    getInitialState:function () {
	        return{
	            url:PageDM.URL.value
	        }
	    },
	    render:function () {
	        return(
	            React.createElement("p", null, 
	                "您已阅读并接受", 
	                React.createElement("a", {href: this.state.url.agreement.link, target: "_blank"}, "《", this.state.url.agreement.name, "》"), 
	                this.state.url.agreement2.name?
	                    React.createElement("span", null, "、", React.createElement("a", {href: this.state.url.agreement2.link, target: "_blank"}, "《", this.state.url.agreement2.name, "》")):"", 
	                
	                "约束，并选择委托银行代为发布融资项目信息，请与您的客户经理联系。"
	            )
	        )
	    }
	})

	var Root = React.createClass({displayName: "Root",
	    getInitialState: function () {
	        return {
	            accType: PageDM.accType.value,
	            assetTypeId: PageDM.typeSituation.value.assetTypeId,
	            disableType: PageDM.typeSituation.value.disableType
	        }
	    },
	    componentDidMount: function () {
	        var _this = this;
	        UEventHub.on(PageDM.user.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function (v) {
	            _this.refs.phoneWrap.innerHTML = v;
	        });
	        UEventHub.on(PageDM.accType.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function (v) {
	            _this.setState({
	                accType: v,
	                assetTypeId:v
	            });
	        });
	        UEventHub.on(PageDM.typeSituation.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function (v) {
	            _this.setState({
	                disableType: v.disableType,
	                assetTypeId:v.assetTypeId
	            })
	        });
	        UEventHub.on(PageDM.btn.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.refs.borrowApply.setState({disabled:v.disabled});
	            // _this.getType(v)
	        });
	        //URL
	        UEventHub.on(PageDM.URL.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            var checkRef = _this.refs.borrowApply.getRefs('agreement');
	            checkRef.setState({
	                url:v
	            })
	            _this.refs.success.setState({
	                url:v
	            })
	        });
	        UEventHub.on('showResult', function (bool, result) {
	            if (bool) {
	                PageDM.user.setValue(result);
	                _this.refs.borrow.style.display = "none";
	                _this.refs.borrowResult.style.display = "block";
	            } else {
	                _this.refs.borrow.style.display = "block";
	                _this.refs.borrowResult.style.display = "none";
	            }

	        })
	        UEventHub.emit("pageLoad", "hello world!");
	    },
	    getType: function (val) {
	        if (this.state.accType == 0) {
	            if (val != 0)
	                return;
	        } else {
	            if (val == 0)
	                return;
	        }

	        this.setState({
	            assetTypeId: val
	        })
	        // PageDM.btn.setValue({type:val});
	        PageDM.typeSituation.onClick(val);
	    },
	    render: function () {
	        var _this = this;
	        var PageDM = window.PageDM;
	        var step = [
	            {
	                Title: "注册/登录",
	                Description: ""
	            },
	            {
	                Title: "选择融资类型",
	                Description: "",
	                Address: ""
	            },
	            {
	                Title: "签署融资协议",
	                Description: " ",
	                Address: ""
	            },
	            {
	                Title: "委托银行代为发布",
	                Description: ""
	            }
	        ]
	        return (
	            React.createElement("div", null, 
	                React.createElement("div", {ref: "borrow"}, 
	                    React.createElement("div", {className: "form-loan"}, 
	                        React.createElement("div", {className: "container"}, 
	                            React.createElement("div", {className: "index-title"}, React.createElement("b", null), "我要借款", React.createElement("b", null)), 
	                            React.createElement("div", {className: "tab"}, 
	                                React.createElement("ul", {className: "clearfix", ref: "type"}, 
	                                    React.createElement("li", {className: this.state.assetTypeId == 0 ? "col-1 current" : "col-1", onClick: function () { _this.getType(0) }}, "个人贷款"), 
	                                    React.createElement("li", {className: this.state.assetTypeId == 1 ? "col-2 current" : "col-2", onClick: function () { _this.getType(1) }}, "企业贷款"), 
	                                    React.createElement("li", {className: this.state.assetTypeId == 2 ? "col-3 current" : "col-3", onClick: function () { _this.getType(2) }}, "票据"), 
	                                    React.createElement("li", {className: this.state.assetTypeId == 3 ? "col-4 current" : "col-4", onClick: function () { _this.getType(3) }}, "资管")
	                                )
	                            ), 
	                            React.createElement(BorrowApply, {ref: "borrowApply", type: this.state.accType, able: this.state.disableType})
	                        )
	                    ), 
	                    React.createElement("div", {className: "index-steps loan"}, 
	                        React.createElement("div", {className: "container"}, 
	                            React.createElement("div", {className: "index-title"}, React.createElement("b", null), "申请流程", React.createElement("b", null)), 
	                            React.createElement("div", {className: "content clearfix"}, 
	                                React.createElement("div", {className: "ucs-steps financing"}, 
	                                    React.createElement(Steps, {data: step})
	                                )
	                            )
	                        )
	                    )
	                ), 
	                React.createElement("div", {ref: "borrowResult", className: "loan-result container", style: { display: 'none'}}, 
	                    React.createElement("div", {className: "txt"}, 
	                        React.createElement("p", null, "您好，", React.createElement("span", {ref: "phoneWrap"}), "！"), 
	                        React.createElement("p", null, " "), 
	                        React.createElement(BorrowSuccess, {ref: "success"})
	                    ), 
	                    React.createElement("span", {className: "angle angle-top"}), 
	                    React.createElement("span", {className: "angle angle-bottom"})
	                )
	            )
	        )
	    }
	});
	ReactDOM.render(React.createElement(Root, null), document.getElementById('giraffe'));

/***/ }),
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */
/***/ (function(module, exports) {

	/**
	 * Created by DuHuiling on 2017/2/21.
	 */
	var Password = React.createClass({displayName: "Password",
	    getDefaultProps:function(){
	        return{
	            "id":"",
	            "value":"",
	            "className":"",
	            "dmbind":"",
	            "placeholder":"请输入密码",
	            "onkeypress":"",
	            onFocus:function(){}
	        }
	    },
	    _getNode:function(nid){
	        var _nodes = document.getElementsByTagName('div'),
	            _getNode;
	        for(var i in _nodes){
	            if(_nodes[i].refs == nid){
	                _getNode = _nodes[i];
	            }
	        }
	        return _getNode;
	    },
	    _onFocus:function (e) {
	        var _nodeInput = e.target || e.srcElement,
	            _nodeSpan = _nodeInput.nextSibling;
	        if(_nodeSpan.className == "ucs-placeholder"){
	            _nodeSpan.className = "ucs-placeholder hide";
	        }
	        this.props.onFocus && this.props.onFocus();
	    },
	    _handle:function(e){
	        var _nodeSpan = e.target || e.srcElement,
	            _node = _nodeSpan.parentNode,
	            _nodeInput = _node.firstChild;
	        if(_nodeSpan.className == "ucs-placeholder"){
	            _nodeSpan.className = "ucs-placeholder hide";
	        }
	        _nodeInput.focus();
	    },
	    _placeholder:function(_this){
	        if (!('placeholder' in document.createElement('input'))){
	            return (
	                React.createElement("span", {className: "ucs-placeholder", onClick: _this._handle}, _this.props.placeholder)
	            );
	        }else{
	            return "";
	        }
	    },
	    _onBlur:function(e){
	        if (!('placeholder' in document.createElement('input'))){
	            var _nodeInput = e.target || e.srcElement,
	                _node = _nodeInput.parentNode,
	                _nodeSpan = _node.lastChild;
	            if(!_nodeInput.value){
	                _nodeSpan.className = "ucs-placeholder";
	            }
	        }
	        this.props.onBlur && this.props.onBlur();
	    },
	    render:function(){
	        var _this = this;
	        var GiraffeObjectManager = window.GiraffObjectManager;
	        var MaxLength = GiraffeObjectManager[this.props.dmbind].maxLength;
	        if (MaxLength == undefined) {
	            return (
	                React.createElement("div", {className: "ucs-input-control"}, 
	                    React.createElement("input", {id: this.props.id, 
	                           className: "ucs-password " + this.props.className, 
	                           type: "password", 
	                           value: this.props.value, 
	                           dmbind: this.props.dmbind, 
	                           placeholder: this.props.placeholder, 
	                           onkeypress: this.props.onKeyPress, 
	                           onkeyup: this.props.onKeyUp, 
	                           onfocus: this._onFocus.bind(this), 
	                           onblur: this._onBlur.bind(this)}), 
	                    this._placeholder(this)
	                )
	            )

	        } else {
	            return (
	                React.createElement("div", {className: "ucs-input-control"}, 
	                    React.createElement("input", {
	                        id: this.props.id, 
	                        maxLength: MaxLength, 
	                        className: "ucs-password " + this.props.className, 
	                        type: "password", 
	                        value: this.props.value, 
	                        dmbind: this.props.dmbind, 
	                        placeholder: this.props.placeholder, 
	                        onkeypress: this.props.onKeyPress, 
	                        onkeyup: this.props.onKeyUp, 
	                        onfocus: this._onFocus.bind(this), 
	                        onblur: this._onBlur.bind(this)}), 
	                    this._placeholder(_this)
	                )
	            )
	        }
	    }
	});

	module.exports = Password;

/***/ }),
/* 6 */,
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/3/1.
	 */
	var Label = __webpack_require__(8);

	var FormItem = React.createClass({displayName: "FormItem",
	    getDefaultProps:function(){
	        return{
	            id:"",
	            label:"",
	            dmbind:"",
	            className:"",
	            correctMsg:'',
	            unValidate:false
	        }
	    },
	    getInitialState:function(){
	        return {
	            tipHide:true,
	            text:'',
	            msgClass:'ucs-form-explain'
	        }
	    },
	    componentDidMount:function(){
	        var ICON_FONT_CONST = window.UI_CONST.ICON_FONT_CONST;
	        var iconCorrect = ICON_FONT_CONST['icon-correct'];
	        // console.log(iconCorrect)
	        var _udmid = this.props.dmbind;
	        var _this = this;
	        UEventHub.on(_udmid + UI_EVENT_CONST.ONVALIDATE_EVENT,function(msg){
	            if(_this.props.unValidate) return;

	            var _msg = msg;
	            if(!_msg){
	                _this.refs[_this.props.dmbind].className = "ucs-form-explain success";
	                _this.refs[_this.props.dmbind].innerHTML = '<div><i class="iconfont ">'+iconCorrect+'</i>'+_this.props.correctMsg+'</div>';
	            }else if(_msg == "clean"){
	                _this.refs[_this.props.dmbind].className = "ucs-form-explain";
	                _this.refs[_this.props.dmbind].innerHTML = '<div></div>';
	            }else{
	                _this.refs[_this.props.dmbind].className = "ucs-form-explain";
	                _this.refs[_this.props.dmbind].innerHTML = '<div><i class="iconfont icon-error"></i>'+_msg+'</div>';
	            }
	        }.bind(this));

	        GiraffObjectManager[_this.props.dmbind].reset = function(){
	            return _this.clearValue();
	        }

	    },
	    getChildrenRefs:function(ref){
	        return this.refs[ref];
	    },
	    clearValue:function(){
	        var _this = this;
	        GiraffObjectManager[_this.props.dmbind].value = "";
	        _this.setState({
	            msgClass:"ucs-form-explain hide"
	        });
	    },
	    render:function(){
	        var _this = this;
	        return(
	            React.createElement("div", React.__spread({},  this.props, {className: "ucs-form-group " + this.props.className, id: this.props.id}), 
	                React.createElement(Label, {value: this.props.label}), 
	                
	                    this.props.children.map(function(item,idx){
	                        if(item.tagName == "INPUT" || item.tagName == "TEXTAREA" || item.displayName == "Input" || item.displayName == "Password" || item.displayName == "Textarea"){
	                            return React.cloneElement(item,{
	                                onFocus:function(){
	                                    _this.refs[_this.props.dmbind].className = "ucs-form-explain hide";
	                                },
	                                value:GiraffObjectManager[_this.props.dmbind].value
	                            });
	                        }else{
	                            return item;
	                        }
	                    }), 
	                
	                React.createElement("div", {className: this.state.msgClass, ref: this.props.dmbind}, this.state.text)
	            )
	        )
	    }
	});

	module.exports = FormItem;

/***/ }),
/* 8 */
/***/ (function(module, exports) {

	/**
	 * Created by DuHuiling on 2017/2/24.
	 */
	var Label = React.createClass({displayName: "Label",
	    getDefaultProps:function(){
	        return {
	            id:"",
	            setFor:"",
	            value:"这是Label",
	            className:""
	        }
	    },
	    render:function(){
	        return(
	            React.createElement("label", {id: this.props.id, For: this.props.setFor, className: "ucs-label "+this.props.className}, this.props.value)
	        )
	    }
	});
	module.exports = Label;

/***/ }),
/* 9 */
/***/ (function(module, exports) {

	var Input = React.createClass({displayName: "Input",
	    getDefaultProps: function () {
	        return {
	            className: 'ucs-input',
	            dmbind: '',
	            placeholder: "",
	            onFocus: function () {
	            },
	            onBlur: function () {
	            }
	        };
	    },
	    componentDidMount: function () {
	    },
	    _onKeyUp:function (e) {
	          this.props.onKeyUp && this.props.onKeyUp(e);
	    },
	    _onFocus: function (e) {
	        var _nodeInput = e.target || e.srcElement,
	            _nodeSpan = _nodeInput.nextSibling;
	        if (_nodeSpan.className == "ucs-placeholder") {
	            _nodeSpan.className = "ucs-placeholder hide";
	        }
	        this.props.onFocus && this.props.onFocus();
	    },
	    _handle: function (e) {
	        var _nodeSpan = e.target || e.srcElement,
	            _node = _nodeSpan.parentNode,
	            _nodeInput = _node.firstChild;
	        if (_nodeSpan.className == "ucs-placeholder") {
	            _nodeSpan.className = "ucs-placeholder hide";
	        }
	        _nodeInput.focus();
	    },
	    _placeholder: function (_this) {
	        if (!('placeholder' in document.createElement('input'))) {
	            return (
	                React.createElement("span", {className: "ucs-placeholder", onClick: _this._handle}, _this.props.value ? _this.props.value : _this.props.placeholder)
	            );
	        } else {
	            return "";
	        }
	    },
	    _onBlur: function (e) {
	        if (!('placeholder' in document.createElement('input'))) {
	            var _nodeInput = e.target || e.srcElement,
	                _node = _nodeInput.parentNode,
	                _nodeSpan = _node.lastChild;
	            if (!_nodeInput.value) {
	                _nodeSpan.className = "ucs-placeholder";
	                _nodeSpan.innerHTML = this.props.placeholder;
	            }
	        }
	        this.props.onBlur && this.props.onBlur();
	    },
	    focus:function () {
	        this.refs.input.focus();

	    },
	    checkPlaceHolder:function () {
	        if (!('placeholder' in document.createElement('input'))) {
	            var _nodeInput = this.refs.input,
	                _node = _nodeInput.parentNode,
	                _nodeSpan = _node.lastChild;
	            if (!_nodeInput.value) {
	                _nodeSpan.className = "ucs-placeholder";
	                _nodeSpan.innerHTML = this.props.placeholder;
	            }
	        }
	    },
	    render: function () {
	        var that = this;
	        var GiraffeObjectManager = window.GiraffObjectManager;
	        if(this.props.dmbind){
	            var MaxLength = GiraffeObjectManager[this.props.dmbind].maxLength;
	            GiraffeObjectManager[this.props.dmbind].focus = function () {
	                document.getElementById(that.props.dmbind).focus();  //todo:这是一个比较麻烦的问题，后续再优化，暂时先这样把
	            }
	        }
	        if (MaxLength == undefined) {
	            return (
	                React.createElement("div", {className: "ucs-input-control"}, 
	                    React.createElement("input", {ref: "input", 
	                           type: "text", 
	                           id: this.props.dmbind, 
	                           value: this.props.value ? this.props.value : '', 
	                           className: this.props.className, 
	                           dmbind: this.props.dmbind, 
	                           placeholder: this.props.placeholder, 
	                           onkeyup: this._onKeyUp.bind(this), 
	                           onfocus: this._onFocus.bind(this), 
	                           onblur: this._onBlur.bind(this)}), 
	                    this._placeholder(this)
	                )
	            )

	        } else {
	            return (
	                React.createElement("div", {className: "ucs-input-control"}, 
	                    React.createElement("input", {ref: "input", 
	                           maxLength: MaxLength, 
	                           type: "text", 
	                           id: this.props.dmbind, 
	                           value: this.props.value ? this.props.value : '', 
	                           className: this.props.className, 
	                           dmbind: this.props.dmbind, 
	                           placeholder: this.props.placeholder, 
	                           onkeyup: this._onKeyUp.bind(this), 
	                           onfocus: this._onFocus.bind(this), 
	                           onblur: this._onBlur.bind(this)}), 
	                    this._placeholder(this)
	                )
	            )

	        }

	    }
	})
	module.exports = Input;

/***/ }),
/* 10 */,
/* 11 */,
/* 12 */
/***/ (function(module, exports) {

	var Button = React.createClass({displayName: "Button",
		getInitialState:function () {
			return{
				disabled:this.props.disabled || false
			}
	    },
		getDefaultProps:function(){
			return{
				// disabled:false
			}
		},
		_handler:function(){
			var _this = this;
	        this.props.onClick();
		},
		render: function() {
			var _this = this;
			if(this.props.dmbind){
	            GiraffObjectManager[this.props.dmbind].setDisabled = function(bool){
	                if(bool){
	                    _this.setState({
	                        disabled:true
	                    })
	                }else{
	                    _this.setState({
	                        disabled:false
	                    })
	                }
	            };
			}

	        var customClassName = this.props.className ? 'ucs-btn '+this.props.className : 'ucs-btn';
	        customClassName = this.state.disabled ? customClassName + " ucs-btn-disabled" : customClassName;
			var id = this.props.id?this.props.id:'';
			if(this.props.href){
				return React.createElement("a", {id: id, onClick: this.props.onClick, className: customClassName, href: this.props.href}, this.props.value)
			}else{
				return React.createElement("button", {id: id, disabled: this.state.disabled, onClick: this._handler.bind(this), onMouseDown: this.props.onMouseDown, className: customClassName}, this.props.value)
			}
		}
	})
	module.exports = Button;

/***/ }),
/* 13 */
/***/ (function(module, exports) {

	/**
	 * Created by DuHuiling on 2017/2/24.
	 */
	var closeOpen = function(){
	    var _open = document.getElementsByClassName('open')[0];
	    if(_open){
	        var _classArr = _open.className.split(" ");
	        for(var i in _classArr){
	            if(_classArr[i] == "open"){
	                _classArr.splice(i,1);
	            }
	        }
	        var _className = _classArr.join(" ");
	        _open.className = _className;
	    }
	}
	EventListener.addEventHandler(document,"onclick",function (e) {
	    closeOpen();
	});

	var SelectDropDown = React.createClass({displayName: "SelectDropDown",
	    getDefaultProps: function () {
	        return {
	            id:"",
	            value: "",//默认初始值
	            className: "",
	            disabled:false,
	            type: "", //三种类型，bank,search
	            showNum: "",
	            showTitle:true,  //显示title
	            options: "",
	            defaultValue: "请选择",
	            defaultIndex:null,
	            searchButton: "",
	            placeholder: "",
	            fuzzy: false,//true支持模糊搜索，false不支持模糊搜索
	            inputChange: "",//搜索时输入框回调
	            buttonClick: "",//搜索时按钮回调
	            _dmid: new UDM({}).dmbind /*为每个 select-dropdown 创建udmid*/
	        }
	    },
	    getInitialState:function(){
	        return{
	            options: this.props.options,
	            currentIdx:this.props.defaultIndex,
	            currentValue:null,
	            currentText:'',
	            _className:this.props.className ? "ucs-select-dropdown "+ this.props.className : "ucs-select-dropdown",
	            searchInputVal: ""
	        }
	    },
	    setOptions:function (v) {
	        this.setState({
	            options:v
	        })
	    },
	    componentDidMount:function () {
	        var defaultIndex = this.props.defaultIndex;
	        var defaultValue = this.props.defaultValue;
	        var indexOptin,valueOption;
	        if(typeof defaultIndex =='number' && this.state.options[defaultIndex]){
	            this.setState({
	                currentIdx:defaultIndex,
	                currentText: this.state.options[defaultIndex].option,
	                currentValue: this.state.options[defaultIndex].value
	            });

	        }else if(defaultValue) {
	            this.state.options.map(function (item,index) {
	                if(item.value == defaultValue){
	                    indexOptin = index;
	                }
	            });
	            valueOption = (typeof indexOptin == "number") ? this.state.options[indexOptin].option : defaultValue;
	            this.setState({
	                currentIdx:indexOptin,
	                currentValue:defaultValue,
	                currentText: valueOption
	            });
	        }else {
	            this.setState({
	                currentText: '请选择'
	            });
	        }
	    },
	    _toggle:function(ref,e){
	        if(this.props.disabled){
	            return;
	        }

	        var _current = this.refs[this.props._dmid];
	        var e = e || window.event;
	        //console.log(e)
	        if(e && e.stopPropagation){
	            //因此它支持W3C的stopPropagation()方法
	            e.stopPropagation();
	        }else{
	            //否则我们使用ie的方法来取消事件冒泡
	            window.event.cancelBubble = true;
	        }
	        this.setState({
	            _className:this._toggleOpen(_current.className)
	        })
	    },
	    _toggleOpen: function(_class){
	        closeOpen();
	        var _classList = _class.split(" ");
	        var j = 0;
	        for(var i=0; i<_classList.length;i++){
	            if(_classList[i] == "open"){
	                j = i;
	            }
	        }
	        if(j){
	            _classList.splice(j,1);
	        }else{
	            _classList.push('open');
	        }
	        _classList = _classList.join(" ");
	        return _classList;
	    },
	    _select:function(idx,val,ref){
	        var _node = this.refs[ref],
	            _input = this.refs[ref + '-control'];
	        // _node.className = this._toggleOpen(_node.className);
	        this.setState({
	            _className:this._toggleOpen(_node.className)
	        })
	        _input.innerHTML = this.state.options[idx].option;

	        this.state.currentIdx = idx;
	        if(val.value){
	            this.setState({
	                currentText: val.option,
	                currentValue: val.value
	            });
	        }else{
	            this.setState({
	                currentText: val.option,
	                currentValue: idx
	            });
	        }

	        var _v = this.getCurrentSelect();
	        this.props.onChange ? this.props.onChange(_v) : "";
	    },
	    getCurrentSelect:function(){
	        return {
	            selectIndex:this.state.currentIdx,
	            selectValue:this.state.currentValue,
	            selectText:this.state.currentText
	        }
	    },
	    searchClickHandler: function(e){
	        var e = e || window.event;
	        if(e && e.stopPropagation){
	            //因此它支持W3C的stopPropagation()方法
	            e.stopPropagation();
	        }else{
	            //否则我们使用ie的方法来取消事件冒泡
	            window.event.cancelBubble = true;
	        }
	    },
	    searchKeyupHandler: function(e){
	        var _this = this;
	        var e = e || window.event;
	        even = e.srcElement?e.srcElement:e.target;
	        var opts = _this.state.options;
	        var len = opts.length;
	        var arr = [];
	        var iArr = [];
	        var reg = new RegExp(even.value);
	        for(var i=0;i<len;i++){
	            //如果字符串中不包含目标字符会返回-1
	            if(opts[i].option.match(reg)){
	                arr.push(opts[i]);
	                iArr.push(i);
	            }
	        }
	        var element = this.refs[_this.props._dmid + '-dropdown-list'];
	        while (element.firstChild) {
	            element.removeChild(element.firstChild);
	        }
	        if(arr.length == 0){
	            this.refs[this.props._dmid + '-dropdown-list'].appendChild(
	                React.createElement("li", null, "无查询结果！")
	            );
	        }else{
	            if(_this.props.showTitle){
	                for(var i = 0; i < arr.length; i++){
	                    this.refs[this.props._dmid + '-dropdown-list'].appendChild(
	                        React.createElement("li", {title: arr[i].option, onClick: _this._select.bind(_this,i,iArr[i],_this.props._dmid)}, 
	                            arr[i].option
	                        )
	                    );
	                }
	            }else{
	                for(var i = 0; i < arr.length; i++){
	                    this.refs[this.props._dmid + '-dropdown-list'].appendChild(
	                        React.createElement("li", {onClick: _this._select.bind(_this,i,iArr[i],_this.props._dmid)}, 
	                            arr[i].option
	                        )
	                    );
	                }
	            }

	        }
	    },
	    /*下拉选项列表*/
	    /*selectList: function(){
	        var _lis = [],_that = this;
	        for(var i=0; i<this.state.options.length;i++){
	            (function(j,val,ref){
	                if(_that.props.showTitle){
	                    _lis.push(
	                        <li title={_that.state.options[j].option} onClick={_that._select.bind(_that,j,val,ref)}>
	                            {_that.state.options[j].option}
	                        </li>
	                    );
	                }else{
	                    _lis.push(
	                        <li onClick={_that._select.bind(_that,j,val,ref)}>
	                            {_that.state.options[j].option}
	                        </li>
	                    );
	                }

	            })(i,this.state.options[i],this.props._dmid);
	        }
	        return <ul>{_lis}</ul>
	    },*/
	    render:function(){
	        /*判断defaultValue是否是数字，“是”则代表默认显示第几个选项*/
	        var _this = this;
	        var defaultValue = _this.state.currentText;
	        var _class = _this.props.disabled?_this.state._className+" ucs-disabled":_this.state._className;
	        return (
	            React.createElement("div", {className: _class, ref: _this.props._dmid}, 
	                React.createElement("div", {className: "ucs-select-control", ref: _this.props._dmid + '-select-click', onClick: _this._toggle.bind(_this,_this.props._dmid + '-select-click')}, 
	                    React.createElement("div", {className: "ucs-input", ref: _this.props._dmid + '-control', title: _this.props.showTitle ? _this.state.currentText : ''}, _this.state.currentText), 
	                    React.createElement("span", {className: "ucs-icon"})
	                ), 
	                React.createElement("div", {className: "ucs-dropdown"}, 
	                    
	                        _this.props.fuzzy ? (
	                            React.createElement("div", {className: "ucs-dropdown-border"}, 
	                                React.createElement("div", {className: "usc-dropdown-search"}, React.createElement("input", {type: "text", onClick: _this.searchClickHandler.bind(_this), onKeyup: _this.searchKeyupHandler.bind(_this)})), 
	                                React.createElement("ul", {ref: _this.props._dmid + '-dropdown-list'}, 
	                                    
	                                        _this.state.options.map(function(opt,index){
	                                           if(_this.props.showTitle){
	                                               return (
	                                                   React.createElement("li", {title: opt.option, onClick: _this._select.bind(_this,index,opt,_this.props._dmid)}, 
	                                                       opt.option
	                                                   )
	                                               )
	                                           }else{
	                                               return (
	                                                   React.createElement("li", {onClick: _this._select.bind(_this,index,opt,_this.props._dmid)}, 
	                                                       opt.option
	                                                   )
	                                               )
	                                           }
	                                        })
	                                    
	                                )
	                            )
	                        ):(
	                            React.createElement("div", {className: "ucs-dropdown-border"}, 
	                                React.createElement("ul", {ref: _this.props._dmid + '-dropdown-list'}, 
	                                    
	                                        _this.state.options.map(function(opt,index){
	                                            if(_this.props.showTitle){
	                                                return (
	                                                    React.createElement("li", {title: opt.option, onClick: _this._select.bind(_this,index,opt,_this.props._dmid)}, 
	                                                        opt.option
	                                                    )
	                                                )
	                                            }else{
	                                                return (
	                                                    React.createElement("li", {onClick: _this._select.bind(_this,index,opt,_this.props._dmid)}, 
	                                                        opt.option
	                                                    )
	                                                )
	                                            }
	                                        })
	                                    
	                                )
	                            )
	                        )
	                    
	                )
	            )
	        )
	    }
	});
	module.exports = SelectDropDown;

/***/ }),
/* 14 */,
/* 15 */,
/* 16 */
/***/ (function(module, exports) {

	var Checkbox = React.createClass({displayName: "Checkbox",
	    getDefaultProps:function(){
	        return{
	            id: "",
	            value: "",
	            dmbind:""
	        }
	    },
	    handler: function (e) {
	        var _input = e.target || e.srcElement,
	            _checked = _input.checked;
	        this.props.onClick && this.props.onClick(_checked);
	    },
	    render: function () {
	        var checked = this.props.value ? true : false;
	        var className = this.props.className;
	        var text = this.props.text ? this.props.text : '';
	        return (
	            React.createElement("label", {className: className ? "ucs-checkbox " + className : "ucs-checkbox"}, 
	                React.createElement("input", {type: "checkbox", checked: checked, id: this.props.id, value: this.props.value, className: "ucs-checkbox-input", dmbind: this.props.dmbind, 
	                       onClick: this.handler.bind(this)}), 
	                React.createElement("span", {className: "ucs-checkbox-text"}, text)
	            )
	        )
	    }
	});

	module.exports = Checkbox;




/***/ }),
/* 17 */,
/* 18 */,
/* 19 */,
/* 20 */,
/* 21 */,
/* 22 */,
/* 23 */
/***/ (function(module, exports) {

	/**
	 * Created by DuHuiling on 2017/4/21.
	 */

	var Steps = React.createClass({displayName: "Steps",
	    getInitialState:function(){
	        return{
	            data:this.props.data
	        }
	    },
	    render:function(){
	        var list = this.state.data;
	        return(
	            React.createElement("ul", null, 
	                list.length > 0 ?
	                    list.map(function(item,index){
	                        return (
	                            React.createElement("li", null, 
	                                React.createElement("a", {href: item.Address?item.Address:"javascript:void(0)", target: item.Address?"_blank":"_self", style: item.Address?{cursor:'pointer'}:{cursor:'text'}, className: "bg bg"+(index+1)}), 
	                                React.createElement("a", {href: item.Address?item.Address:"javascript:void(0)", target: item.Address?"_blank":"_self", style: item.Address?{cursor:'pointer'}:{cursor:'text'}}, item.Title), 
	                                item.Description, 
	                                index < list.length - 1 ?
	                                    React.createElement("i", null) : ""
	                                
	                            )
	                        )
	                    }) : ""
	                
	            )
	        )
	    }
	});
	module.exports = Steps;

/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/4/25.
	 */
	var Password = __webpack_require__(5);
	var FormItem = __webpack_require__(7);
	var Input = __webpack_require__(25);
	var Checkbox = __webpack_require__(16);
	var Button = __webpack_require__(12);
	var SelectDropDown = __webpack_require__(13);

	var Agreement = React.createClass({displayName: "Agreement",
	    getDefaultProps: function () {
	        return{
	            url:PageDM.URL.value
	        }
	    },
	    getInitialState: function () {
	        return{
	            url:this.props.url
	        }
	    },
	    render:function () {
	        return React.createElement("a", {ref: "agreement", href: this.state.url.agreement.link, className: "fc-link", target: "_blank"}, "《", this.state.url.agreement.name, "》")
	    }
	});
	var BorrowApply = React.createClass({displayName: "BorrowApply",
	    getDefaultProps:function(){
	        return{
	            type:0,
	            able:0
	        }
	    },
	    getInitialState: function () {
	      return{
	          disabled:PageDM.btn.value.disabled,
	          banksOption:PageDM.banks.value.options
	      }
	    },
	    componentDidMount:function () {
	        var _this = this;

	        UEventHub.on(PageDM.banks.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.setState({banksOption:v.options},function () {
	                var bankRef = _this.refs['banks'];
	                if(bankRef){
	                    var bankSelect = bankRef.getCurrentSelect();
	                    PageDM.banks.value.selectIndex = bankSelect.selectIndex;
	                    PageDM.banks.value.selectValue = bankSelect.selectValue;
	                    PageDM.banks.value.selectText = bankSelect.selectText;
	                }

	            });
	        });
	        PageDM.banks.getCurrentSelect = function () {
	            if(_this.refs.banks){
	                return _this.refs.banks.getCurrentSelect();
	            }else {
	                return '';
	            }

	        };
	    },
	    getRefs:function (ref) {
	        return this.refs[ref];
	    },
	    backsChange:function (v) {
	        PageDM.banks.setValue(v);
	        PageDM.banks.onChange && PageDM.banks.onChange(v);
	    },
	    checkboxClick:function(v){
	        PageDM.checkbox.setValue(v);
	        PageDM.checkbox.onClick && PageDM.checkbox.onClick(v);
	    },
	    formatCard:function (pagedm) {
	        var val = pagedm.getValue();
	        val = UFormatter.formatBankCard(val);
	        pagedm.setValue(val);
	        pagedm.value = val.replace(/\s/g, "");
	    },
	    render: function(){
	        var _this = this;
	        var disableAll  = this.props.able ==1 || this.props.able ==2 ? true: false;
	        var disableSome = this.props.able ==2 ? true: false;
	        var bank = '';
	        if(PageDM.banks.value.selectIndex){
	            bank = PageDM.banks.value.options[PageDM.banks.value.selectIndex].option;
	        }else if(PageDM.banks.value.selectValue) {
	            PageDM.banks.value.options.map(function (item,index) {
	                if(item.value == PageDM.banks.value.selectValue){
	                    bank = PageDM.banks.value.options[index].option;
	                }
	            })
	        }
	        return (
	            React.createElement("div", {className: "form"}, 
	                this.props.type ?
	                    React.createElement(FormItem, {label: "企业姓名", dmbind: PageDM.companyName.dmbind}, 
	                        disableAll ?
	                            React.createElement("input", {className: "ucs-input disabled", value: PageDM.companyName.value, disabled: true, dmbind: PageDM.companyName.dmbind}):
	                            React.createElement(Input, {placeholder: PageDM.companyName.placeholder, value: PageDM.companyName.value, dmbind: PageDM.companyName.dmbind})
	                        
	                    ):'', 
	                

	                React.createElement(FormItem, {label: "联系人姓名", dmbind: PageDM.contacts.dmbind}, 
	                    disableAll ? React.createElement("input", {className: "ucs-input disabled", value: PageDM.contacts.value, disabled: true, dmbind: PageDM.contacts.dmbind}):React.createElement(Input, {placeholder: PageDM.contacts.placeholder, value: PageDM.contacts.value, dmbind: PageDM.contacts.dmbind})

	                ), 
	                React.createElement(FormItem, {label: "联系人电话", dmbind: PageDM.contactsPhone.dmbind}, 
	                    disableAll ? React.createElement("input", {className: "ucs-input disabled", value: PageDM.contactsPhone.value, disabled: true, dmbind: PageDM.contactsPhone.dmbind}) : React.createElement(Input, {placeholder: PageDM.contactsPhone.placeholder, value: PageDM.contactsPhone.value, dmbind: PageDM.contactsPhone.dmbind})
	                ), 
	                React.createElement(FormItem, {label: "开户银行", dmbind: PageDM.banks.dmbind}, 
	                    React.createElement(SelectDropDown, {ref: "banks", disabled: disableSome ? true : false, defaultIndex: PageDM.banks.value.selectIndex, defaultValue: PageDM.banks.value.selectValue, options: this.state.banksOption, onChange: _this.backsChange})
	                     ), 
	                React.createElement(FormItem, {label: "银行账号", dmbind: PageDM.bankNum.dmbind}, 
	                    disableSome ? React.createElement("input", {className: "ucs-input disabled", value: PageDM.bankNum.value, disabled: true, dmbind: PageDM.bankNum.dmbind}) : React.createElement(Input, {placeholder: PageDM.bankNum.placeholder, value: PageDM.bankNum.value, dmbind: PageDM.bankNum.dmbind, onBlur: _this.formatCard.bind(_this,PageDM.bankNum)})
	                ), 
	                React.createElement("div", {className: "ucs-form-group "}, 
	                    React.createElement("label", {className: "ucs-label "}, "发布方式"), 
	                    React.createElement("div", {className: "ucs-input disabled"}, "委托银行代为发布"), 
	                    React.createElement("div", {className: "ucs-form-explain"})
	                ), 
	                /*formItem必须绑定dmbind,否则报错*/
	                /*<FormItem label="发布方式">*/
	                    /*<div className="ucs-input disabled">委托银行代为发布</div>*/
	                /*</FormItem>*/

	                React.createElement("div", {className: "form-group check"}, 
	                    React.createElement("label", null, " "), 
	                    React.createElement(Checkbox, {text: " 我已阅读并同意", value: PageDM.checkbox.value, onClick: this.checkboxClick, dmbind: PageDM.checkbox.dmbind}), 
	                    React.createElement(Agreement, {ref: "agreement"})
	                ), 

	                React.createElement("div", {className: "button"}, 
	                    React.createElement(Button, {value: "立即申请", className: _this.state.disabled ? 'btn btn-confirm ucs-btn-disabled':'btn btn-confirm ', disabled: _this.state.disabled, onClick: PageDM.btn.onClick})
	                ), 
	                React.createElement("span", {className: "angle angle-left"}), 
	                React.createElement("span", {className: "angle angle-right"})
	            )
	        )
	    }
	});
	module.exports = BorrowApply;

/***/ }),
/* 25 */
/***/ (function(module, exports) {

	var Input = React.createClass({displayName: "Input",
	    getDefaultProps: function () {
	        return {
	            className: 'ucs-input',
	            dmbind: '',
	            placeholder: "",
	            onFocus: function () {
	            },
	            onBlur: function () {
	            }
	        };
	    },
	    componentDidMount: function () {
	    },
	    _onKeyUp:function (e) {
	          this.props.onKeyUp && this.props.onKeyUp(e);
	    },
	    _onFocus: function (e) {
	        var _nodeInput = e.target || e.srcElement,
	            _nodeSpan = _nodeInput.nextSibling;
	        if (_nodeSpan.className == "ucs-placeholder") {
	            _nodeSpan.className = "ucs-placeholder hide";
	        }
	        this.props.onFocus && this.props.onFocus();
	    },
	    _handle: function (e) {
	        var _nodeSpan = e.target || e.srcElement,
	            _node = _nodeSpan.parentNode,
	            _nodeInput = _node.firstChild;
	        if (_nodeSpan.className == "ucs-placeholder") {
	            _nodeSpan.className = "ucs-placeholder hide";
	        }
	        _nodeInput.focus();
	    },
	    _placeholder: function (_this) {
	        if (!('placeholder' in document.createElement('input'))) {
	            return (
	                React.createElement("span", {className: "ucs-placeholder", onClick: _this._handle}, _this.props.value ? _this.props.value : _this.props.placeholder)
	            );
	        } else {
	            return "";
	        }
	    },
	    _onBlur: function (e) {
	        if (!('placeholder' in document.createElement('input'))) {
	            var _nodeInput = e.target || e.srcElement,
	                _node = _nodeInput.parentNode,
	                _nodeSpan = _node.lastChild;
	            if (!_nodeInput.value) {
	                _nodeSpan.className = "ucs-placeholder";
	                _nodeSpan.innerHTML = this.props.placeholder;
	            }
	        }
	        this.props.onBlur && this.props.onBlur();
	    },
	    focus:function () {
	        this.refs.input.focus();

	    },
	    checkPlaceHolder:function () {
	        if (!('placeholder' in document.createElement('input'))) {
	            var _nodeInput = this.refs.input,
	                _node = _nodeInput.parentNode,
	                _nodeSpan = _node.lastChild;
	            if (!_nodeInput.value) {
	                _nodeSpan.className = "ucs-placeholder";
	                _nodeSpan.innerHTML = this.props.placeholder;
	            }
	        }
	    },
	    render: function () {
	        var that = this;
	        var GiraffeObjectManager = window.GiraffObjectManager;
	        if(this.props.dmbind){
	            var MaxLength = GiraffeObjectManager[this.props.dmbind].maxLength;
	            GiraffeObjectManager[this.props.dmbind].focus = function () {
	                document.getElementById(that.props.dmbind).focus();  //todo:这是一个比较麻烦的问题，后续再优化，暂时先这样把
	            }
	        }
	        if (MaxLength == undefined) {
	            return (
	                React.createElement("div", {className: "ucs-input-control"}, 
	                    React.createElement("input", {ref: "input", 
	                           type: "text", 
	                           id: this.props.dmbind, 
	                           value: this.props.value ? this.props.value : '', 
	                           className: this.props.className, 
	                           dmbind: this.props.dmbind, 
	                           placeholder: this.props.placeholder, 
	                           onkeyup: this._onKeyUp.bind(this), 
	                           onfocus: this._onFocus.bind(this), 
	                           onblur: this._onBlur.bind(this)}), 
	                    this._placeholder(this)
	                )
	            )

	        } else {
	            return (
	                React.createElement("div", {className: "ucs-input-control"}, 
	                    React.createElement("input", {ref: "input", 
	                           maxLength: MaxLength, 
	                           type: "text", 
	                           id: this.props.dmbind, 
	                           value: this.props.value ? this.props.value : '', 
	                           className: this.props.className, 
	                           dmbind: this.props.dmbind, 
	                           placeholder: this.props.placeholder, 
	                           onkeyup: this._onKeyUp.bind(this), 
	                           onfocus: this._onFocus.bind(this), 
	                           onblur: this._onBlur.bind(this)}), 
	                    this._placeholder(this)
	                )
	            )

	        }

	    }
	})
	module.exports = Input;

/***/ })
/******/ ]);